import api from '@/http/index'

/* 获取全局参数列表，展示全局参数表单 */
export const getTablesList = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Setting/GetListJson', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};

/* 提交表单数据，进行参数修改*/
export const postSubmitForm = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Setting/SubmitForm', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};